if (!this._workspacesDisplay.activeWorkspaceHasMaximizedWindows())
Main.overview.fadeOutDesktop();
- this._showPage(this._workspacesPage);
+ this._showPage(this._workspacesPage, true);
},
zoomFromOverview: function() {
return page;
},
- _fadePageIn: function() {
+ _fadePageIn: function(oldPage) {
+ if (oldPage)
+ oldPage.hide();
+
this.emit('page-empty');
this._activePage.show();
});
},
- _showPage: function(page) {
+ _showPage: function(page, noFade) {
if (page == this._activePage)
return;
this._activePage = page;
this.emit('page-changed');
- if (oldPage)
+ if (oldPage && !noFade)
Tweener.addTween(oldPage,
{ opacity: 0,
time: OverviewControls.SIDE_CONTROLS_ANIMATION_TIME / 2,
transition: 'easeOutQuad',
onComplete: Lang.bind(this,
function() {
- oldPage.hide();
- this._fadePageIn();
+ this._fadePageIn(oldPage);
})
});
else
- this._fadePageIn();
+ this._fadePageIn(oldPage);
},
_a11yFocusPage: function(page) {